<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.ResourceBundle"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Collections"%>
<%@page import="entity.Question" %>
<%@page import="util.CacheHandle" %>
<%@page import="model.QuestionModel" %>
<%
	QuestionModel questionModel = new QuestionModel();
	HttpSession ss = request.getSession(true);
	ResourceBundle resource = (ResourceBundle) ss.getAttribute("language"); 
%>
<%	
	List<String> listAlias = CacheHandle.getQuestionCache("en"); 
	List<Question> list = new ArrayList<Question>();
	for(String string: listAlias){
		list.add(questionModel.findByAlias(string, "en"));
	}
%>
<h3><%=resource.getString("recent_view_question") %></h3>
<ul class="vr">
	<%for(Question question: list){
		%>
			<li><a href="<%=request.getContextPath()%>/<%=resource.getString("code")%>/question/<%=question.getAlias() %>"><%=question.getTitle() %></a></li>
		<%			
	} %>		
</ul> 